﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication.ServiceReference;

namespace WebApplication
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {            
            DropDownList1.DataMember = "TenNV";
            DropDownList1.DataSource = Utility.SwSoapClient.GetDanhSachNhanVien();
            //DropDownList1.DataSourceID = "MaNV";
            DropDownList1.DataTextField = "TenNV";
            DropDownList1.DataValueField = "MaNV";
            DropDownList1.DataBind();
        }
    }
}